Hi All, |
Re: DXL Script Performance - Issue with BIG Module
You might try checking to see if the module is open before trying to use the read or edit commands. It is my understanding that each time you use the read/edit command it tries to open the module. If the module is already open then there is no need to do this. You can just set your module variable to that module. You can do something like the following:
if (open module targetFullName)
{
t3 = module item targetFullName3
}
else
{
t3 = edit(targetFullName3)
}
|
Re: DXL Script Performance - Issue with BIG Module I also see you creating a lot of strings you just use to output some information. Accessing values in an object slows things down. Change to using object IDs since its faster. It also doesn't build as big a string table as I'm sure Object Text is larger than the ID most of the time. Or just get rid of this altogether. If you want them, declare a global Buffer and use it for the whole script. Use tempStringOf() in your prints/log file to avoid building the string table any more than you have to. AAI Services, Textron dpechacek@aai.textron.com David.Pechacek@gmail.com |